//
//  HWCommentViewController.m
//  嗨文
//
//  Created by 响当当 on 6/24/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "HWCommentCircleViewController.h"
#import "HWCommentCircleView.h"

@interface HWCommentCircleViewController ()
@property (nonatomic, strong)HWCommentCircleView *commentCircleView;
@end

@implementation HWCommentCircleViewController

- (HWCommentCircleView *)commentCircleView
{
    if (!_commentCircleView)
    {
        _commentCircleView = [[HWCommentCircleView alloc]initWithFrame:CGRectMake(0,NAVIBAR_HEIGHT,SCREEN_WIDTH,SCREEN_HEIGHT-NAVIBAR_HEIGHT)];
    }
    return _commentCircleView;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self setDefaultNavWithTitle:@"小说评论"];
//    [self setRightTitle:@"举报" TitleColor:[UIColor whiteColor]];
//    [self.rightButton addTarget:self action:@selector(Report) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:self.commentCircleView];
    
    [self getDate];
}


- (void)getDate
{
    NSDictionary *prarmers = @{
                               @"access_token" : current_User.token,
                               };
    
    WeakSelf(self)
    [MyInfoManager getBookList:prarmers sucess:^(id  _Nonnull acceptData)
     {
         [weakSelf.commentCircleView creatUI:acceptData];
     } fail:^(NSError * _Nullable error) {
         DISMISS_SVP(1.0f);
         [SVProgressHUD showErrorWithStatus:@"获取失败，请检查网络是否良好"];
         DISMISS_SVP(1.0f);
     }];
}

- (void)Report
{
    
}
@end
